package com.getword.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;


@Document(collection = "school")
@Getter
@Setter
@ToString
public class School implements Serializable {
    @Id
    private Long id;
    private String schoolName;
//    private City city;
    private String firstPy;
    private String py;
    private Integer countyId;  //城市 三级城市
    private Integer provinceId;  // 一级、省
    private Integer status;
    private Integer sctype;
    private Integer userDefine;

    @Transient
    private String provinceName;  // 省
    @Transient
    private String cityName;   // 市
    @Transient
    private String countyName; // 县、区

    public School() {
    }

    public School(Long id) {
        this.id = id;
    }
}
